﻿<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<?php include("./template/back/_head.html") ?>
<body>



<section>
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
		<span class="c-gray en">&gt;</span>
		<?php echo $title ?>
		<span class="c-gray en">&gt;</span>
		列表

	</nav>
	<div class="Hui-article">
		<article class="cl pd-20">
			<?php if($add_url){ ?>
			<div class="cl pd-5 bg-1 bk-gray mt-20">
				<span class="l">

				<a class="btn btn-primary radius" data-title="添加" href="<?php echo $add_url ?>"><i class="Hui-iconfont">&#xe600;</i> 添加</a>
				</span>

			</div>
			<?php } ?>
			<div class="mt-20">
				<table class="table table-border table-bordered table-bg table-hover table-sort">
					<thead>
					<tr class="">
						<?php foreach($list_title as $k=>$v){ ?>
						<th> <?php echo $v  ?></th>
						<?php } ?>
						<th>操作</th>
					</tr>
					</thead>
					<tbody>

					<?php foreach($list_data as $k=>$v){ ?>
					<tr class="">
						<?php foreach($list_data_name as $k2=>$v2){ ?>


						<?php $if_text=true; ?>
						<?php foreach($type as $k3=>$v3){ ?>
							<?php if($v3[name]==$v2 && $v3[type]=='image'){ ?>
								<td><img style="width:100px;" src="<?php echo $v[$v2]?>"/></td>
								<?php $if_text=false;break;  ?>
							<?php } ?>


						<?php } ?>
						<?php if($if_text==true){ ?>
							<td><?php echo $v[$v2]?></td>

						<?php } ?>





						<?php } ?>
						<td>
							<?php if($hide_edit==0){ ?>
							<a href="<?php echo url('edit',[id=>$v[id]]) ?>">编辑</a>
							<?php } ?>

							<?php if($hide_delete==0){ ?>
							<a href="<?php echo url('del',[id=>$v[id]]) ?>">删除</a>
							<?php } ?>
						</td>
					</tr>
					<?php } ?>
					</tbody>


				</table>

				<div class="dataTables_info"><?php echo  $page_html ?></div>

			</div>
		</article>
	</div>
</section>




<!--_footer 作为公共模版分离出去-->
<?php include("./template/back/_footer2.html") ?>
<!--/_footer /作为公共模版分离出去-->


</body>
</html>